<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title></title>
</head>
<body>

<script type="text/javascript">
	// 电脑端和手机跳转不同
	function isMobile() {
		var userAgentInfo = navigator.userAgent;
		var mobileAgents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"];
		var mobile_flag = false;
		//根据userAgent判断是否是手机
		for (var v = 0; v < mobileAgents.length; v++) {
			if (userAgentInfo.indexOf(mobileAgents[v]) > 0) {
				mobile_flag = true;
				break;
			}
		}
		var screen_width = window.screen.width;
		var screen_height = window.screen.height;

		//根据屏幕分辨率判断是否是手机
		if (screen_width > 325 && screen_height < 750) {
			mobile_flag = true;
		}
		return mobile_flag;
	}


	//获取url中的参数
	function getUrlParam(name) {
	    var query = window.location.search.substring(1);
		var vars = query.split("&");
		for (var i=0;i<vars.length;i++) {
			var pair = vars[i].split("=");
			if(pair[0] == name){return pair[1];}
		}
		return "";
	}

	var mobile_flag = isMobile();
	if (mobile_flag) {
		var murl = getUrlParam('murl');
		if (murl.indexOf("http") != -1 && murl.indexOf("links_compatible") == -1) {
			window.location.href = murl;
		}
	} else {
		var curl = getUrlParam('curl');
		if (curl.indexOf("http") != -1 && curl.indexOf("links_compatible") == -1) {
			window.location.href = curl;
		}
	}
</script>
</body>
</html>